package com.seagull.core.dao.impl;

import com.commons.model.Page;
import com.seagull.core.dao.CityDao;
import com.seagull.core.mapper.CityMapper;
import com.seagull.core.model.City;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/9/12.
 */
@Repository
public class CityDaoImpl implements CityDao {

    @Autowired
    private CityMapper cityMapper;

    @Override
    public Page<City> findAll(Page page) {
        page.setObject(cityMapper.findAllCity(page));
        return page;
    }
}
